package com.tx.studentManager.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 【资源管理表实体】
 * 
 * @since studentManager-admin 1.0.2
 * @version 1.0.2
 * @date 2015年9月27日 08:55
 * @author 此生唯晴
 */
@Entity
@Table(name = "urlfilter", catalog = "studentManager")
@DynamicInsert(true)
@DynamicUpdate(true)
public class UrlFilter extends BaseModel implements Serializable {
	/**
	 * serialVersionUID: (用一句话描述这个变量表示什么)
	 */
	private static final long serialVersionUID = 8855573601210399419L;
	@Id
	@Column(nullable = false, length = 32)
	@GenericGenerator(name = "StrGenerator", strategy = "uuid")
	@GeneratedValue(generator = "StrGenerator")
	private String id;
	/**
	 * url描述
	 */
	@Column(length = 16,nullable = false)
	private String name;
	/**
	 * url资源
	 */
	@Column(length = 32,nullable= false)
	private String url;
	/**
	 * 角色名称
	 */
	@Column(length = 20)
	private String roles;
	/**
	 * 菜单url级别
	 */
	@Column(length = 2)
	private short level;
	/**
	 * 权限
	 */
	@Column(length=10)
	private String permission;
	/**
	 * 是否可用
	 */
	@Column(nullable = false,columnDefinition="int(2) DEFAULT 1 COMMENT '是否启用'")
	private Integer isActived;
	/**
	 * 创建日期
	 */
	@Column(name="createDate",nullable=false)
	private Date createDate;
	
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}

	public String getPermission() {
		return permission;
	}

	public void setPermission(String permission) {
		this.permission = permission;
	}

	public short getLevel() {
		return level;
	}

	public void setLevel(short level) {
		this.level = level;
	}

	public Integer getIsActived() {
		return isActived;
	}

	public void setIsActived(Integer isActived) {
		this.isActived = isActived;
	}

}
